[3.15] gh-142349: Simplify lazy import resolution (GH-158282) - #158569
Merged
pablogsal merged 1 commit intoOct 1, 2026
Merged
Conversation
This was referenced Oct 1, 2026
pablogsal
marked this pull request as ready for review
October 1, 2026 16:25
pablogsal
requested review from
DinoV,
FFY00,
Yhg1s,
ZeroIntensity,
brettcannon,
encukou,
ericsnowcurrently,
kumaraditya303,
markshannon,
methane,
ncoghlan and
warsaw
as code owners
October 1, 2026 16:25
pablogsal
enabled auto-merge (squash)
October 1, 2026 16:26
Documentation build overview
148 files changed ·
|
hugovk
approved these changes
Oct 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport #158282 (a6a63b6) to 3.15 so lazy import fixes use the same resolution code as main. The 3.15 conflicts are resolved, the interpreter files are regenerated, and the ABI snapshot is updated for the removed private helpers and the changed return type of
_PyDict_LoadGlobalStackRef.The debug build passes
test_lazy_import,test_import,test_importlib,test_module,test_dict,test_capi, andtest_sys(3,268 tests).